﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PageDetail.ascx.cs" Inherits="Modules_Pages_Controls_PageDetail" %>
<asp:Repeater ID="rpt" runat="server">
    <ItemTemplate>
        <div class="metadata">
            <div class="datetime">
                <span class="month">
                    <%#DateTime.Parse(Eval("CreatedDate").ToString()).ToString("MMM") %></span><span
                        class="date"><%#DateTime.Parse(Eval("CreatedDate").ToString()).ToString("dd")%></span>
            </div>
            <div class="metainfo" style="width: 535px; float: left">
                <h1>
                    <a title="Permanent Link to <%#Eval("Title") %>" rel="bookmark" href="">
                        <%#Eval("Title") %></a></h1>
                <input id="hdfid" value='<%#Eval("Id") %>' type="hidden" />
                <div class="meta">
                    <%--<span class="cat_icon"><a rel="category tag" title="View all posts in <%#Eval("TermTaxonomyName")%>"
                        href="<%#GetTermRelationshipsInfo(Eval("lsTermRelationships"))[1]%>">
                        <%#GetTermRelationshipsInfo(Eval("lsTermRelationships"))[0]%></a></span>
                    <br />--%>
                    <span class='st_facebook_hcount' displaytext='Facebook'></span><span class='st_fblike_hcount'
                        displaytext='Like'></span><span class='st_plusone_hcount' displaytext='G+'></span>
                    <span class='st_twitter_hcount' displaytext='Tweet'></span><span class='st_email_hcount'
                        displaytext='Email'></span>
                    <script type="text/javascript">
                        $("li.share span").click(function () {
                            if ($(this).parent().children("ul").hasClass('sh')) {
                                $(this).parent().children("ul").hide();
                                $(this).parent().children("ul").removeClass('sh');
                            }
                            else {
                                $(this).parent().children("ul").show();
                                $(this).parent().children("ul").addClass('sh');
                            }


                        });
                        $(".close").click(function () {
                            $(this).parent().hide();
                            $(this).parent().removeClass('sh');
                        });

                    </script>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="entry">
            <%#Eval("Description") %>
        </div>
      
        <span class='st_facebook_hcount' displaytext='Facebook'></span><span class='st_fblike_hcount'
            displaytext='Like'></span><span class='st_plusone_hcount' displaytext='G+'></span>
        <span class='st_twitter_hcount' displaytext='Tweet'></span><span class='st_linkedin_hcount'
            displaytext='LinkedIn'></span><span class='st_email_hcount' displaytext='Email'></span>
    </ItemTemplate>
</asp:Repeater>